require 'rake'
require 'rake/testtask'
require 'rake/gempackagetask' 

task :default => [:test_units]

Rake::TestTask.new("test_units") { |t|
  desc "Run basic tests"
  t.pattern = 'test/*_test.rb'
#  t.pattern = 'test/story_teller_test.rb'
#  t.pattern = 'test/help_test.rb'
#  t.pattern = 'test/flickr_uploader_test.rb'
#  t.pattern = 'test/file_analyser_test.rb'
#  t.pattern = 'test/grin_generator_test.rb'
#  t.pattern = 'test/freehand_test.rb'
#  t.pattern = 'test/fragmenter_test.rb'
#  t.pattern = 'test/backup_test.rb'
  t.verbose = true
  t.warning = true
}

spec = Gem::Specification.new do |s|
  s.name = "storyteller"
  s.version = "0.0.17"
  s.author = "Andrew Forward"
  s.email = "aforward@gmail.com"
  s.homepage = "http://kooki.ca"
  s.platform = Gem::Platform::RUBY
  s.summary = "Managing your multimedia"
  s.files = FileList["{bin,lib}/**/*"].to_a
  s.require_path = "lib"
  s.test_files = FileList["{test}/**/*test.rb"].to_a
  s.extra_rdoc_files = ["README"]
  s.bindir = 'bin'
  s.executable = 'storyteller'
  s.add_dependency('flickraw','>= 0.4.4')
end

Rake::GemPackageTask.new(spec) do |pkg|
  pkg.need_tar = false
end
